package com.ruoyi.healthCard.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.healthCard.mapper.TBizPhysicalPersonMapper;
import com.ruoyi.healthCard.domain.TBizPhysicalPerson;
import com.ruoyi.healthCard.service.ITBizPhysicalPersonService;

/**
 * 体检人员登记Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-20
 */
@Service
public class TBizPhysicalPersonServiceImpl implements ITBizPhysicalPersonService 
{
    @Autowired
    private TBizPhysicalPersonMapper tBizPhysicalPersonMapper;

    /**
     * 查询体检人员登记
     * 
     * @param personId 体检人员登记主键
     * @return 体检人员登记
     */
    @Override
    public TBizPhysicalPerson selectTBizPhysicalPersonByPersonId(Long personId)
    {
        return tBizPhysicalPersonMapper.selectTBizPhysicalPersonByPersonId(personId);
    }

    /**
     * 查询体检人员登记列表
     * 
     * @param tBizPhysicalPerson 体检人员登记
     * @return 体检人员登记
     */
    @Override
    public List<TBizPhysicalPerson> selectTBizPhysicalPersonList(TBizPhysicalPerson tBizPhysicalPerson)
    {
        return tBizPhysicalPersonMapper.selectTBizPhysicalPersonList(tBizPhysicalPerson);
    }

    /**
     * 新增体检人员登记
     * 
     * @param tBizPhysicalPerson 体检人员登记
     * @return 结果
     */
    @Override
    public int insertTBizPhysicalPerson(TBizPhysicalPerson tBizPhysicalPerson)
    {
        return tBizPhysicalPersonMapper.insertTBizPhysicalPerson(tBizPhysicalPerson);
    }

    /**
     * 修改体检人员登记
     * 
     * @param tBizPhysicalPerson 体检人员登记
     * @return 结果
     */
    @Override
    public int updateTBizPhysicalPerson(TBizPhysicalPerson tBizPhysicalPerson)
    {
        return tBizPhysicalPersonMapper.updateTBizPhysicalPerson(tBizPhysicalPerson);
    }

    /**
     * 批量删除体检人员登记
     * 
     * @param personIds 需要删除的体检人员登记主键
     * @return 结果
     */
    @Override
    public int deleteTBizPhysicalPersonByPersonIds(Long[] personIds)
    {
        return tBizPhysicalPersonMapper.deleteTBizPhysicalPersonByPersonIds(personIds);
    }

    /**
     * 删除体检人员登记信息
     * 
     * @param personId 体检人员登记主键
     * @return 结果
     */
    @Override
    public int deleteTBizPhysicalPersonByPersonId(Long personId)
    {
        return tBizPhysicalPersonMapper.deleteTBizPhysicalPersonByPersonId(personId);
    }
}
